<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container"> 

    <form name="search" id="search">
	  <ul>
		<li id="search_form">
	    <span id="type_all" onClick="set_type('all')">全部</span>
		{loop $types $k $name}
		<span id="type_{$k}" onClick="set_type('{$k}')">{$name}</span>
		{/loop}
		</li>
		<li>
		  <input type="hidden" name="module" value="{$module}"/>
		  <input type="hidden" name="type" value="{$type}" id="type"/>
		  <input type="text" name="q" size="48" value="{$q}" id="q"/>
		  <input type="submit" name="s" id="button" value="搜索" />
		</li>
	  </ul>
    </form>

</div>



<div class="container">
{if $order}
<a href="?module=search&q={urlencode($q)}&type={$type}&page={$page}&order=0">按相似度排序</a> | 按更新时间排序
{else}
按相似度排序 | <a href="?module=search&q={urlencode($q)}&type={$type}&page={$page}&order=1">按更新时间排序</a>
{/if}

找到相关网页约<span style="color:red">{$total}</span>篇，用时<span style="color:red">{$usedtime}</span>秒
{loop $sdata $i $r}
  <dl class="search_list">
    <dt><a href="{$r[url]}">{$r[title]}</a></dt>
    <dd class="search_txt">{$r[content]}</dd>
    <dd class="search_attribute">{$r[url]}　{$r[date]}</dd>
  </dl>
{/loop}

  <div class="pagination">{$spages}</div>
</div>

{template 'footer.html'}